package operation;

import book.Book;
import book.BookList;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2023-11-19
 * Time: 14:21
 */
public class ShowOperation implements IOPeration{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        int currentSize = bookList.getUsedSize();
        for(int i = 0; i < currentSize;i++){
            Book book = bookList.getBook(i);
            System.out.println(book);
            }
        }
    }

